package com.ym.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ym.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {
    IPage<SysUser> selectByExample(@Param("page") IPage<?> page, @Param("example") SysUser example);

    List<String> getRoleNames(@Param("userId") Integer userId);

    List<String> getPermissionNames(@Param("userId") Integer userId);
}